package com.example.testrest;

import java.io.IOException;
import java.util.Vector;

import org.restlet.resource.ClientResource;
import org.restlet.resource.ResourceException;

import restlet.interfaces.AllBenCatsResourceI;
import beans.BenCatBean;

public class TestBenCats {
	public static void main(String[] args) throws ResourceException,
			IOException {

		ClientResource cr = new ClientResource(
				"http://localhost:8080/rest/benCats");
		AllBenCatsResourceI benCatsResourceI = cr
				.wrap(AllBenCatsResourceI.class);
		Vector<BenCatBean> allbenCats = benCatsResourceI.allBenCats();

		for (BenCatBean benCat : allbenCats) {
			System.out.println(benCat);
		}

	}
}
